package com.example.broadcastapplication;

        import android.content.BroadcastReceiver;
        import android.content.Context;
        import android.content.Intent;
        import android.util.Log;

public class OutgingCallReceiver extends BroadcastReceiver {
    public OutgingCallReceiver() {
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        // TODO: This method is called when the BroadcastReceiver is receiving
        // an Intent broadcast.
        //当接收到广播的时候，执行该方法
        //具体接收哪一条广播信息，需要进行注册。接收外拨电话的广播
        //静态注册----在清单文件中注册，
        // 动态注册
        Log.i("MainActivity", "onReceive: 接收到外拨电话的广播 ");;

    }
}
